﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Reporting.WinForms;
using CourseArraging.Common;

namespace CourseArraging.Frm.bbxx
{
    public partial class FrmTecBb : Form
    {
        /// <summary>
        /// 版权所有
        /// 石世特@温州医学院 sst330381@gmail.com
        /// </summary> 
        public FrmTecBb()
        {
            InitializeComponent();
        }

        public FrmTecBb(DataTable dt)
            : this()
        {
            dt.Columns["编号"].ColumnName = "tec_info_no";
            dt.Columns["姓名"].ColumnName = "tec_info_name";
            dt.Columns["性别"].ColumnName = "tec_info_sex";
            dt.Columns["固定电话"].ColumnName = "tec_info_gddh";
            dt.Columns["手机号码"].ColumnName = "tec_info_phone";
            dt.Columns["家庭地址"].ColumnName = "tec_info_address";
            reportViewer1.LocalReport.ReportPath =
                GlobalVar.filePath + @"\bb\BbTecxx.rdlc";

            ReportDataSource rds = new ReportDataSource("tecInfoDs", dt);
            reportViewer1.LocalReport.DataSources.Add(rds);
        }

        private void FrmTecBb_Load(object sender, EventArgs e)
        {

            this.reportViewer1.RefreshReport();
        }
    }
}
